package team.star.werespos.model.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.Instant;

/**
 * Table class<br/>
 * 餐桌
 *
 * @author hdonghong
 * @since 2019/05/18
 */
@TableName("`table`")
@Data
@Accessors(chain = true)
public class Table implements Serializable {

    private static final long serialVersionUID = -806169374869222130L;

    @TableId
    private Integer tableId;

    /** 桌号 */
    private Integer tableNum;

    /** 桌子状态 */
    private Integer tableStatus;

    /** 是否删除，1是 */
    @JsonIgnore
    @TableLogic
    private Integer isDel;

    /** 创建时间 */
    @JsonIgnore
    private Instant createTime;

    /** 修改时间 */
    @JsonIgnore
    private Instant updateTime;
}
